// models/notification.go
package model

import "time"

type SystemNotification struct {
	NotificationID string    `json:"notification_id" gorm:"primaryKey"`
	Account        string    `json:"account"`
	Message        string    `json:"message"`
	CreatedAt      time.Time `json:"created_at" gorm:"autoCreateTime"`

	// 关联
	User User `json:"-" gorm:"foreignKey:Account"`
}

func (s *SystemNotification) TableName() string {
	return "system_notification"
}
